package com.greenant.store.bean;

import java.io.Serializable;
import java.text.DecimalFormat;

import com.avos.avoscloud.AVClassName;

@AVClassName(AntAVObject.CLASS_WEBDEPOSIT)
public class WebDeposit extends AntAVObject implements Serializable
{
    /**
     * 
     */
    private static final long serialVersionUID = -4261527796839216354L;

    private static final String TAG = "WebDeposit";
    public static final String ATTR_MONEY = "money";
    public static final String ATTR_ORDERAMOUNT = "orderAmount";
    public static final String ATTR_IP = "ip";
    public static final String ATTR_MERID = "merId";
    public static final String ATTR_USERID = "userid";
    public static final String ATTR_TRADENO = "tradeNo";
    public static final String ATTR_TRACENUMBER = "traceNumber";
    public static final String ATTR_RESPCODE = "respCode";
    public static final String ATTR_ORDERNUMBER = "orderNumber";
    public static final String ATTR_BUYEREMAIL = "buyerEmail";
    public static final String ATTR_TYPE = "type";
    public static final String ATTR_QID = "qid";
    public static final String ATTR_RESPMSG = "respMsg";
    public static final String ATTR_RESPTIME = "respTime";

    public WebDeposit()
    {
        super(AntAVObject.CLASS_WEBDEPOSIT);
    }

    public WebDeposit(String str)
    {
        super(str);
    }

    public Double getMoney()
    {
        double money = this.getDouble(ATTR_MONEY);
        DecimalFormat df = new DecimalFormat("#########.##");
        return Double.parseDouble(df
            .format(money));
    }

    public void setMoney(Double descrip)
    {
        this.put(ATTR_MONEY, descrip);
    }

    public void setOrderAmount(String descrip)
    {
        this.put(ATTR_ORDERAMOUNT, descrip);
    }

    public String getOrderAmount()
    {
        return this.getString(ATTR_ORDERAMOUNT);
    }

    public void setIp(String unit)
    {
        this.put(ATTR_IP, unit);
    }

    public String getIp()
    {
        return this.getString(ATTR_IP);
    }

    public void setMerId(String unit)
    {
        this.put(ATTR_MERID, unit);
    }

    public String getMerId()
    {
        return this.getString(ATTR_MERID);
    }

    public void setUserid(String unit)
    {
        this.put(ATTR_USERID, unit);
    }

    public String getUserid()
    {
        return this.getString(ATTR_USERID);
    }

    public void setTradeNo(String unit)
    {
        this.put(ATTR_TRADENO, unit);
    }

    public String getTradeNo()
    {
        return this.getString(ATTR_TRADENO);
    }

    public void setTraceNumber(String unit)
    {
        this.put(ATTR_TRACENUMBER, unit);
    }

    public String getTraceNumber()
    {
        return this.getString(ATTR_TRACENUMBER);
    }

    public void setRespCode(String unit)
    {
        this.put(ATTR_RESPCODE, unit);
    }

    public String getRespCode()
    {
        return this.getString(ATTR_RESPCODE);
    }

    public void setOrderNumber(String unit)
    {
        this.put(ATTR_ORDERNUMBER, unit);
    }

    public String getOrderNumber()
    {
        return this.getString(ATTR_ORDERNUMBER);
    }

    public void setBuyerEmail(String unit)
    {
        this.put(ATTR_BUYEREMAIL, unit);
    }

    public String getBuyerEmail()
    {
        return this.getString(ATTR_BUYEREMAIL);
    }

    public void setType(String unit)
    {
        this.put(ATTR_TYPE, unit);
    }

    public String getType()
    {
        return this.getString(ATTR_TYPE);
    }

    public void setQid(String unit)
    {
        this.put(ATTR_QID, unit);
    }

    public String getQid()
    {
        return this.getString(ATTR_QID);
    }

    public void setRespMsg(String unit)
    {
        this.put(ATTR_RESPMSG, unit);
    }

    public String getRespMsg()
    {
        return this.getString(ATTR_RESPMSG);
    }

    public void setRespTime(String unit)
    {
        this.put(ATTR_RESPTIME, unit);
    }

    public String getRespTime()
    {
        return this.getString(ATTR_RESPTIME);
    }
}
